import {http} from "@/service/http";

const prefix = '/Migrate'


/**
 * 获取权限部分Map数据 从库迁移到主库
 * @param connID
 * @returns
 */
export const dataMigrateFromOld2New = (connID: string, tableName: string[]) => {
  return http({
    method: 'GET',
    url: `${prefix}/DataMigrateFromOld2New`,
    data: tableName
  })
}


/**
 * 权限数据库导出Excel
 * @returns
 */
export const saveData2Excel = () => {
  return http({
    method: 'GET',
    url: `${prefix}/SaveData2Excel`,
  })
}



/**
 * 权限数据库导出Tsv
 * @returns
 */
export const saveData2Tsv = () => {
  return http({
    method: 'GET',
    url: `${prefix}/SaveData2Tsv`,
  })
}
